package com.zjj.edu.system.service.impl;

import com.zjj.edu.system.domain.SysClassTimes;
import com.zjj.edu.system.mapper.SysClassTimesMapper;
import com.zjj.edu.system.service.ISysClassTimesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 班级开课时间Service业务层处理
 *
 * @author zjj
 * @date 2020-09-03
 */
@Service
public class SysClassTimesServiceImpl implements ISysClassTimesService
{
    @Autowired
    private SysClassTimesMapper classTimesMapper;

    @Override
    public List<SysClassTimes> selectSysClassTimesByClassId(Long classId, long tenantId) {
        return classTimesMapper.selectSysClassTimesByClassId(classId, tenantId);
    }

    @Override
    public List<SysClassTimes> selectSysClassTimesList(SysClassTimes sysClassTimes) {
        return classTimesMapper.selectSysClassTimesList(sysClassTimes);
    }

    @Override
    public int insertSysClassTimes(SysClassTimes sysClassTimes) {
        return classTimesMapper.insertSysClassTimes(sysClassTimes);
    }

    @Override
    public int updateSysClassTimes(SysClassTimes sysClassTimes) {
        return classTimesMapper.updateSysClassTimes(sysClassTimes);
    }

    @Override
    public int deleteSysClassTimesByClassId(Long classId, long tenantId) {
        return classTimesMapper.deleteSysClassTimesByClassId(classId, tenantId);
    }
}
